﻿(function ($) {
    var iframe_settings = {
        type: 2,
        title: '编辑',
        shadeClose: false,
        maxmin: true,
        fix: false,
        area: ['800px', 460]
    };
    var msg_settings = {
        type: 1,
        title: false,
        //shade: [0],
        closeBtn: false,
        shadeClose: true,
        shift: 'right-bottom',
        area: [240, 70],
        class: 'message-navbar',
        time: 4,
        btns: 0,
        page: { html: '<h5 class="widget-main center clearfix pink"><i class="icon-comment-alt"></i>  请至少选择一行数据。</h5>' }
    };

    $.extend($, {
        iframe_box: function (args) {
            args = $.extend({}, iframe_settings, args);
            $.layer(args);
        },
        msg_box: function (msg, args) {
            args = $.extend({}, msg_settings, args);
            if (msg) {
                args.page.html = '<h5 class="widget-main center clearfix pink"><i class="icon-comment-alt"></i> ' + msg + '</h5>';
            }
            $.layer(args);
        }
    });
})(jQuery);